package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Bean
 * @since 2021-09-05
 */
@Data
@ApiModel("赞实体类")
@EqualsAndHashCode(callSuper = false)
@TableName("praise")
public class Praise implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("作品的主键")
    @TableField("v_id")
    private Integer vId;

    @ApiModelProperty("用户的主键")
    @TableField("u_id")
    private Integer uId;

    @ApiModelProperty("赞时间")
    @TableField("time")
    private Date time;

    @ApiModelProperty("状态")
    @TableField("state")
    private Integer state;
}
